package com.wlyuan.open.scanner.domain.address;

import org.mapstruct.Mapping;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author lijing
 * @description
 */
@Retention(RetentionPolicy.CLASS)
@Mapping(target = "province", source = "addrProvincename")
@Mapping(target = "provinceCode", source = "addrProvinceid")
@Mapping(target = "districtCode", source = "addrDistrictid")
@Mapping(target = "district", source = "addrDistrictname")
@Mapping(target = "cityCode", source = "addrCityid")
@Mapping(target = "city", source = "addrCityname")
@Mapping(target = "addressCode", source = "addrCode")
@Mapping(target = "address", source = "addrDesc")
@Mapping(target = "contactEmail", expression = "java(null)")
public @interface MappingCreation {

}
